package com.gao.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Projectname SSM
 * @Filename ViewController
 * @Author an
 * @Data 2022/8/4 22:32
 * @Description TODO
 */
@Controller
@RequestMapping("/test/view")
public class ViewController {

    @RequestMapping("/thymeleaf")
    public String testThymeLeafView(){

        return "success";
    }

    @RequestMapping("/forward")
    public String testForward(){

        return "forward:/test/model";
    }


    @RequestMapping("/redirect")
    public String testRedirect(){
        return "redirect:/test/model";
    }
}
